<{include file="block/header.html"}>
<!--面包屑导航开始-->
<div class="main_topnav mb20">
	<div class="mainwd">
		<p><span class="ico_list breadna"></span>您的位置：<a href="<{link ctl='index'}>"><{$CONFIG.site.title}></a>
			&gt;<a href="<{link ctl='home:tuan'}>">团装小区</a>
		</p>
	</div>
</div>
<!--面包屑导航结束-->
<div class="mainwd">
	<!--主体左边内容开始-->
	<div class="main_content lt">
		<div class="mb10 pding area choose_option">
			<table>
                <tr>
                    <td class="tit">区域：</td>
                    <td>
                        <a href="<{$area_all_link}>" <{if empty($pager.area_id)}>class="current"<{/if}>>不限</a>
                        <{foreach $area_list  as $v}>
                        <a href="<{$v.link}>" <{if $v.area_id==$pager.area_id}>class="current"<{/if}>><{$v.area_name}></a>
                        <{/foreach}>
                    </td>
                </tr> 
			</table>
		</div>
		<div class="mb20">
			<h2><font class="lt">团装小区列表</font><span class="rt tit">共有<font class="fontcl2">10</font>个团装活动</span></h2>
			<div class="cl"></div>
			<div class="sort_box">
				<p class="sort_list hoverno">
					<{foreach $order_list  as $k=>$v}>
                    <a href="<{$v.link}>"><{$v.title}><span <{if $k == $pager.order}>class="sort_ico ico_list sort_on_ico"<{else}>class="sort_ico ico_list"<{/if}>></span></a>
                    <{/foreach}> 
				</p>               
			</div>
			<ul class="line_type index_tuanz main_tuanz">
            	<{foreach $items as $item}>                	
                <li<{if $item@index%4==0}> class="first"<{/if}>>
                    <div class="opacity_img"><a href="<{link ctl='home:tuanDetail' arg0=$item.tuan_id}>">
                        <img src="<{$pager.img}>/<{$home_list[$item.home_id].thumb}>" /></a>
                        <p class="bg"></p>
                        <p class="text"><span class="index_ico time_ico"></span><span remaintime="<{$item.ltime}>"></span></p>
                    </div>
                    <div class="index_tuanz_btm">
                        <p><b><a target="_blank" title="<{$item.title}>" href="<{link ctl='home:tuanDetail' arg0=$item.tuan_id}>" class="tit"><{$item.title}></a>
                            </b></p>
                        <p class="colorbg">
                            <span class="lt tit">立省<b class="fontcl1">￥<{$item.jieyue}></b>元</span>
                            <{if $item.stime > $pager.dateline}>
                            <a href="<{link ctl='home:tuanDetail' arg0=$item.tuan_id}>" class="youhui_over_btn rt btn">未开启</a>
                            <{elseif $item.ltime < $pager.dateline}>
                            <a href="<{link ctl='home:tuanDetail' arg0=$item.tuan_id}>" class="youhui_over_btn rt btn">已结束</a>
                            <{else}>
                            <a href="<{link ctl='home:tuanDetail' arg0=$item.tuan_id}>" class="btn_sub_sm rt btn">立即参团</a>
                            <{/if}>
                        </p>
                        <p><font class="fontcl2"><{$item.sign_num}></font>人已参团</p>
                    </div>
                </li>
                <{/foreach}>
			</ul>
			<div class="cl"></div>
			<{if $pager.pagebar}><div class="page hoverno"><{$pager.pagebar}></div><{/if}>
		</div>
	</div>
	<!--主体左边内容结束-->
	<!--主体右边内容开始-->
	<div class="side_content rt">
        <{widget id="tenders/fast" title="免费装修设计" from="TSJ"}> 
        <div class="mb10 area">
            <h3 class="side_tit">团装报名排行</h3>
            <ul class="pding paihang">
                <{calldata mdl="home/tuan" order="sign_num:DESC" city_id=$request.city_id limit=8}>
                <li>
                    <span class="lt"><font class="paihang_num<{if $iteration<=3}> ph_num_cl<{/if}>"><{$iteration}></font><a href="<{link ctl='home:tuanDetail' arg0=$item.tuan_id}>"><{$item.title|cutstr:35}></a></span>
                    <span class="rt">报名数：<font class="fontcl2"><{$item.sign_num}></font></span>
                </li>
                <{/calldata}>
            </ul>
        </div>
        <div class="mb10 area">
            <h3 class="side_tit">装修公司排行榜</h3>
            <ul class="pding paihang">
                <{calldata mdl="company/company" city_id=$request.city_id limit=5}>
                <li>
                    <span class="lt"><font class="paihang_num<{if $iteration<=3}> ph_num_cl<{/if}>"><{$iteration}></font><a href="<{$item.company_url}>"><{$item.name}></a></span>
                   <span class="rt">已投标：<font class="fontcl2"><{$item.tenders_num}></font></span>
                </li>
                <{/calldata}>
            </ul>
        </div> 
        <div class="mb10 area">
			<h3 class="side_tit">设计师排行榜</h3>
			<ul class="pding paihang">
                <{calldata mdl="designer/designer" city_id=$request.city_id limit=5}>
				<li>
                    <span class="lt"><font class="paihang_num<{if $iteration<=3}> ph_num_cl<{/if}>"><{$iteration}></font><a href="<{link ctl='blog'  arg0=$item.uid}>"><{$item.name|cutstr:35}></a></span>
                    <span class="rt">已投标：<font class="fontcl2"><{$item.tenders_num}></font></span>
                </li>
                <{/calldata}>
			</ul>
		</div>       
        <div class="mb20 "><{adv id="10" name="全站右侧招商图片广告" city_id=$request.city_id}></div>
	</div>
	<div class="cl"></div>
	<!--主体右边内容结束-->
</div>
<!--底边内容开始-->
<script type="text/javascript">
(function(K, $){
    $(function(){
    var dateTime = new Date();
    var difference = dateTime.getTime() - <{$pager.dateline}>*1000;	
    setInterval(function(){
      $("[remaintime]").each(function(){
        var obj = $(this);
        var endTime = new Date(parseInt(obj.attr('remaintime')) * 1000);
        var nowTime = new Date();
        var nMS=endTime.getTime() - nowTime.getTime() + difference;
        var myD=Math.floor(nMS/(1000 * 60 * 60 * 24));
        var myH=Math.floor(nMS/(1000*60*60)) % 24;
        var myM=Math.floor(nMS/(1000*60)) % 60;
        var myS=Math.floor(nMS/1000) % 60;
        var myMS=Math.floor(nMS/100) % 10;
        if(myD>= 0){
			var str = myD+"天"+myH+"小时"+myM+"分"+myS+"."+myMS+"秒";
        }else{
			var str = "真遗憾您来晚了，抢购已经结束。";	
		}
		obj.html(str);
      });
    }, 100);
});
})(window.KT, window.jQuery);
</script>
<{include file="block/footer.html"}>
